public class Test1 {
    public static void main(String[] args) {
        Solution solution = new Solution();
         String[] arr = {"CAA",
                         "AAA",
                         "BCD"};
          String str = "AAB";
        System.out.println( solution.exist(arr , str));
        System.out.println();
    }
}
